package kr.saeildamil.androidstudy_second.fragment;

import kr.saeildamil.androidstudy_second.R;
import kr.saeildamil.androidstudy_second.fragment.common.ReuseFragment;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class FragmentMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_fragment);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		switch(v.getId()){
		case R.id.fragment_btn01:
			 intent.setClass(this, FragmentLifeCycle.class);
			 break;
		case R.id.fragment_btn02:
			 intent.setClass(this, FragmentTest.class);
			 break;
		case R.id.fragment_btn03:
			 intent.setClass(this, ReuseFragment.class);
			 break;
		case R.id.fragment_btn04:
			 intent.setClass(this, FragmentMgn.class);
			 break;
		case R.id.fragment_btn05:
			 intent.setClass(this, TwoFragment.class);
			 break;
		case R.id.fragment_btn06:
			 intent.setClass(this, FragmentManagerTest.class);
			 break;
		case R.id.fragment_btn07:
			 intent.setClass(this, FragmentArgument.class);
			 break;
		case R.id.fragment_btn08:
			 intent.setClass(this, ListFragmentTest.class);
			 break;
		case R.id.fragment_btn09:
			 intent.setClass(this, WordList.class);
			 break;
		case R.id.fragment_btn10:
			 intent.setClass(this, MultiPaneWidth.class);
			 break;
		
		
		}
		startActivity(intent);
	}

}